<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JWT</title>
</head>
<body>
    <div>
        JWT = Json Web Token,  身份信息验证
    </div>
    <div>
        替代了 session cookie方案
    </div>
    <img src="./1用途.jpg" alt="">
    <img src="./2内容.jpg" alt="">
    <img src="./3生成实力.jpg" alt="">
</body>
<script>
    let header = {alg: 'HS256', type: 'JWT'}
    let payload = {name:'叶柄源',id:103}
    let signature = 'XXXXXXXXXX'
    header = btoa(header)     //转为base64编码
    payload = btoa(payload)
    //atob()                //转为字符串
</script>
</html>